﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Maestro.master" AutoEventWireup="true" CodeFile="Inicio.aspx.cs" Inherits="Inicio" %>

<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dxp" %>
<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxRoundPanel" tagprefix="dxrp" %>
<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxMenu" tagprefix="dxm" %>

<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<%@ Register assembly="DevExpress.Web.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxSiteMapControl" tagprefix="dxsm" %>

<%@ Register src="ejecucion_tareas.ascx" tagname="ejecucion_tareas" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    
    <style type="text/css">
        .style2
        {
            text-align: left;
        }
    </style>
    
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" >
        
    <div  class="style2" align="center">
        <table align="center" width="800px">
            <tr>
                <td align="center">
                    <asp:LoginView ID="lvPrincipal" runat="server">
                        <RoleGroups>
                            <asp:RoleGroup Roles="Administración,Presupuesto,Comercial">
                                <ContentTemplate>
                                    <table>
                                        <tr>
                                            <td>
                                                <dxsm:ASPxSiteMapControl ID="ASPxSiteMapControl1" runat="server" 
                                                    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                                                    DataSourceID="dsMap" Width="750px">
                                                    <LevelProperties>
                                                        <dxsm:LevelProperties NodeSpacing="20px">
                                                            <Font Bold="False"></Font>
                                                            <ChildNodesPaddings PaddingBottom="10px" PaddingLeft="12px" PaddingTop="17px" />
                                                            <NodePaddings PaddingBottom="1px" PaddingLeft="7px" />
                                                        </dxsm:LevelProperties>
                                                        <dxsm:LevelProperties>
                                                            <Image Url="~/App_Themes/Aqua/Web/smLevelBullet.gif" />
                                                        </dxsm:LevelProperties>
                                                        <dxsm:LevelProperties>
                                                            <Image Url="~/App_Themes/Aqua/Web/smLevelBullet.gif" />
                                                        </dxsm:LevelProperties>
                                                        <dxsm:LevelProperties>
                                                            <Image Url="~/App_Themes/Aqua/Web/smLevelBullet.gif" />
                                                        </dxsm:LevelProperties>
                                                        <dxsm:LevelProperties>
                                                            <Image Url="~/App_Themes/Aqua/Web/smLevelBullet.gif" />
                                                        </dxsm:LevelProperties>
                                                    </LevelProperties>
                                                    <Columns>
                                                        <dxsm:Column>
                                                        </dxsm:Column>
                                                        <dxsm:Column>
                                                        </dxsm:Column>
                                                    </Columns>
                                                    <DefaultLevelProperties ImageSpacing="10px" NodeSpacing="8px">
                                                        <ChildNodesPaddings PaddingBottom="0px" PaddingLeft="16px" PaddingTop="8px" />
                                                        <NodePaddings PaddingRight="60px" />
                                                        <CurrentNodeStyle Font-Bold="True" />
                                                    </DefaultLevelProperties>
                                                    <ColumnSeparatorStyle Width="8px">
                                                        <Paddings Padding="0px" />
                                                    </ColumnSeparatorStyle>
                                                </dxsm:ASPxSiteMapControl>
                                                <dxsm:ASPxSiteMapDataSource ID="dsMap" runat="server" 
                                                    SiteMapFileName="~/web.sitemap" />
                                            </td>
                                        </tr>
                                        
                                    </table>
                                </ContentTemplate>
                            </asp:RoleGroup>
                            <asp:RoleGroup Roles="Empleado">
                                <ContentTemplate>
                                    <dxrp:ASPxRoundPanel ID="ASPxRoundPanel2" runat="server" BackColor="White" 
                                        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                                        HeaderText="Tareas asignadas" Width="200px">
                                        <ContentPaddings Padding="14px" />
                                        <HeaderStyle BackColor="#E0EDFF">
                                        <BorderBottom BorderColor="#AECAF0" BorderStyle="Solid" BorderWidth="1px" />
                                        </HeaderStyle>
                                        <TopLeftCorner Height="7px" Url="~/App_Themes/Aqua/Web/rpTopLeft.png" 
                                            Width="7px" />
                                        <NoHeaderTopLeftCorner Height="7px" 
                                            Url="~/App_Themes/Aqua/Web/rpNoHeaderTopLeft.png" Width="7px" />
                                        <TopRightCorner Height="7px" Url="~/App_Themes/Aqua/Web/rpTopRight.png" 
                                            Width="7px" />
                                        <NoHeaderTopRightCorner Height="7px" 
                                            Url="~/App_Themes/Aqua/Web/rpNoHeaderTopRight.png" Width="7px" />
                                        <BottomRightCorner Height="7px" Url="~/App_Themes/Aqua/Web/rpBottomRight.png" 
                                            Width="7px" />
                                        <BottomLeftCorner Height="7px" Url="~/App_Themes/Aqua/Web/rpBottomLeft.png" 
                                            Width="7px" />
                                        <HeaderLeftEdge>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpHeaderBackground.gif" 
                                                Repeat="RepeatX" VerticalPosition="Top" />
                                        </HeaderLeftEdge>
                                        <HeaderContent>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpHeaderBackground.gif" 
                                                Repeat="RepeatX" VerticalPosition="Top" />
                                        </HeaderContent>
                                        <HeaderRightEdge>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpHeaderBackground.gif" 
                                                Repeat="RepeatX" VerticalPosition="Top" />
                                        </HeaderRightEdge>
                                        <NoHeaderTopEdge BackColor="White">
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpNoHeaderTopEdge.gif" 
                                                Repeat="RepeatX" VerticalPosition="Top" />
                                        </NoHeaderTopEdge>
                                        <TopEdge>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpTopEdge.gif" 
                                                Repeat="RepeatX" VerticalPosition="Top" />
                                        </TopEdge>
                                        <RightEdge>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpRightEdge.gif" 
                                                Repeat="RepeatY" VerticalPosition="Top" />
                                        </RightEdge>
                                        <BottomEdge>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpBottomEdge.gif" 
                                                Repeat="RepeatX" VerticalPosition="Bottom" />
                                        </BottomEdge>
                                        <LeftEdge>
                                            <BackgroundImage ImageUrl="~/App_Themes/Aqua/Web/rpLeftEdge.gif" 
                                                Repeat="RepeatY" VerticalPosition="Top" />
                                        </LeftEdge>
                                        <PanelCollection>
                                            <dxp:PanelContent runat="server" SupportsDisabledAttribute="True">
                                                <uc1:ejecucion_tareas ID="ejecucion_tareas1" runat="server" />
                                            </dxp:PanelContent>
                                        </PanelCollection>
                                        <Border BorderColor="#AECAF0" BorderStyle="Solid" BorderWidth="1px" />
                                    </dxrp:ASPxRoundPanel>
                                </ContentTemplate>
                            </asp:RoleGroup>
                        </RoleGroups>
                        <AnonymousTemplate>
                            <table align="center">
                                <tr>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                    <td class="style2">
                                        Bienvenido al sistema de gestión de taller.</td>
                                    <td>
                                        &nbsp;</td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                    <td>
                                        &nbsp;</td>
                                        <td>
                                        &nbsp;</td>
                                    
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;</td>
                                        <td class="style1">
                                        Para iniciar sesión haga clic <a href="login.aspx"</a> aquí
                                    </td>
                                    
                                        <td>
                                        &nbsp;</td>
                                </tr>
                            </table>
                        </AnonymousTemplate>
                    </asp:LoginView>
                </td>
            </tr>
        </table>
    </div>
        
</asp:Content>

